package com.txc.books.entity;

import java.util.List;

/**
 * @author: XCTANG
 *
 */


public class LoanRecords {

    private Integer id;
    private Integer bookId;
    private Integer memberId;
    private String createTime;
    private String endTime;
    private String total;
    private Integer loanStauts = 2;  //有记录，表明借出去了，为按时未归还
    private Integer dataStauts = 1;  //默认数据归档
    private List<Book> books;
    private List<User> users;


    public LoanRecords() {
    }

    public LoanRecords(Integer id, Integer bookId, Integer memberId, String createTime, String endTime, String total, Integer loanStauts, Integer dataStauts) {
        this.id = id;
        this.bookId = bookId;
        this.memberId = memberId;
        this.createTime = createTime;
        this.endTime = endTime;
        this.total = total;
        this.loanStauts = loanStauts;
        this.dataStauts = dataStauts;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getBookId() {
        return bookId;
    }

    public void setBookId(Integer bookId) {
        this.bookId = bookId;
    }

    public Integer getMemberId() {
        return memberId;
    }

    public void setMemberId(Integer memberId) {
        this.memberId = memberId;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public String setEndTime(String endTime) {
        this.endTime = endTime;
        return endTime;
    }

    public String getTotal() {
        return total;
    }

    public void setTotal(String total) {
        this.total = total;
    }

    public Integer getLoanStauts() {
        return loanStauts;
    }

    public void setLoanStauts(Integer loanStauts) {
        this.loanStauts = loanStauts;
    }

    public Integer getDataStauts() {
        return dataStauts;
    }

    public void setDataStauts(Integer dataStauts) {
        this.dataStauts = dataStauts;
    }

    public List<Book> getBooks() {
        return books;
    }

    public void setBooks(List<Book> books) {
        this.books = books;
    }

    public List<User> getUsers() {
        return users;
    }

    public void setUsers(List<User> users) {
        this.users = users;
    }

    @Override
    public String toString() {
        return "LoanRecords{" +
                "id=" + id +
                ", bookId=" + bookId +
                ", memberId=" + memberId +
                ", createTime=" + createTime +
                ", endTime=" + endTime +
                ", total=" + total +
                ", loanStauts=" + loanStauts +
                ", dataStauts=" + dataStauts +
                '}';
    }
}
